<?php
    require_once 'constants.php';
    require_once 'db.php';

    $imgInfos = "";
    $rows = dbGetImageInfos("");

    for ( $i = 0; $i < count($rows); $i++ ) {
        $row = $rows[$i];
        $imgInfos .= $row['id'] . '|' . $row['description'] . '|' . $row['source'] . '|' . $row['submit_date'] . '|' . 
                     $imgStatuses[$row['status']] . '|' . $row['publish_date'] . '|' . $row['email'] . '|' . $row['comment'];
        if ( $i < count($rows) - 1 ) {
            $imgInfos .= "\n";
        }
    }

    print $imgInfos;
?>
